package com.yq.leetcodeOld;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.*;

/**
 * @ClassName TestPoolExecutor
 * @Description TODO
 * @Author yaoqiang
 * @Date 2022/2/15 14:38
 * @Version 1.0
 */
public class TestPoolExecutor {
    public static void main(String[] args) {
//        AbstractExecutorService
//        ScheduledThreadPoolExecutor
//        ExecutorService
//        ConcurrentLinkedDeque
//                concurrentLinkedDeque=new Queue<>();
//        concurrrentl
     //   ArrayList
        Map<Integer,Integer> map=new HashMap<>();
        map.put(1,1);
        map.get(1);
        LinkedHashMap linkedHashMap=new LinkedHashMap();
        ExecutorService es= Executors.newSingleThreadExecutor();

        ExecutorService es2=new ThreadPoolExecutor(1,1,0L, TimeUnit.MILLISECONDS,new LinkedBlockingDeque<>(10),Executors.defaultThreadFactory(),new ThreadPoolExecutor.AbortPolicy());
                /***
                 public ThreadPoolExecutor(int corePoolSize,
                 int maximumPoolSize,
                 long keepAliveTime,
                 TimeUnit unit,
                 BlockingQueue<Runnable> workQueue,
                 ThreadFactory threadFactory) {
                 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue,
                 threadFactory, defaultHandler);
                 */


       // ApplicationContextFactory
    }
}
